<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript">
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 
</script>
<link href="../static/css/loginstyle.css" rel='stylesheet'
	type='text/css' />
<script src="../static/js/jQuery-1.9.1.min.js"></script>
<!--webfonts-->

<!--//webfonts-->
</head>
<body>
	<script>
		function vaild(){
			var username = $("input[name='username']").val();
			var password = $("input[name='password']").val();
			
			if(username == "" || password == ""){
				$('#error').html('账号、密码不能为空');
				return false;
			}
			return true;
		}
	</script>
	<!--SIGN UP-->
	<h1>CTP ADMIN MANAGE</h1>
	<div class="login-form">

		<div class="head-info">
			<label class="lbl-1"> </label> <label class="lbl-2"> </label> <label
				class="lbl-3"> </label>
		</div>
		<div class="clear"></div>
		<div class="avtar">
			<img src="../static/images/avtar.png" />
		</div>
			<div id="error" style="height: 10px;color: green;">${msg}</div>
		<form action="login" method="post" onsubmit="return vaild()">
			<input type="text" class="text" name="username"
				placeholder="username">
			<div class="key">
				<input type="password" name="password" value="Password"
					onfocus="this.value = '';"
					onblur="if (this.value == '') {this.value = 'Password';}">
			</div>
			<div class="signin">
				<input type="submit" value="Login">
			</div>
		</form>
	</div>
	<div class="copy-rights">
		<p></p>
	</div>

</body>
</html>